package com.rd.student.jiaji.class3.qinjialin.day0807;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;

public class DaLetou {
    public static void main(String[] args) {
        Set<String> number5 = new HashSet<>();
        for (int i = 0; i <5; i++) {
            int num5 = (int) (Math.random() * 37 + 1);
            String a;
            if (num5 < 9) {
                a = "0" + num5;
            } else {
                a = String.valueOf(num5);
            }
            number5.add(a);
        }
        Set <String> number2 = new HashSet<>();
        String b="|";

        for (int i = 0; i <2; i++) {
            int num2 = (int) (Math.random() * 12 + 1);
            String a;
            if (num2 < 9) {
                a = "0" + num2;
            } else {
                a = String.valueOf(num2);
            }
            number2.add(a);
        }
        ArrayList<String> aa=new ArrayList<>();
        aa.addAll(number5);
        aa.add(b);
        aa.addAll(number2);
        System.out.println(aa);
    }
}
